package cn.cxy.blockcanarydemo

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        button.setOnClickListener {
            longRun()
        }
    }

    private fun longRun() {
        repeat((0..100000).count()) {
            Log.v("test", "xxxxxx")
        }
    }
}